//
//  RDNetworkTool.h
//  eCourseApp
//
//  Created by 飞猪 on 2018/9/2.
//  Copyright © 2018年 Facebook. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RDNETChapterModel.h"
#import "RABookFaceModel.h"
#import "RABookDetailModel.h"

@interface RDNetworkTool : NSObject

// 请求章节内容数据
+ (void)requestForChapter:(NSDictionary *)params successBlock:(void(^)(RDNETChapterModel *))successBlock failBlock:(void(^)(NSString *))failBlock;

// 请求章节列表数据
+ (void)requestForChapterList:(NSDictionary *)params successBlock:(void(^)(NSArray<RDNETChapterListModel *> *))successBlock failBlock:(void(^)(NSString *))failBlock;

// 请求前台配置
+ (void)requestForBookFaceList:(NSDictionary *)params successBlock:(void(^)(NSArray<RABookFaceModel *> *))successBlock failBlock:(void(^)(NSString *))failBlock;

// 请求书本介绍详情
+ (void)requestForBookDetail:(NSDictionary *)params successBlock:(void(^)(RABookDetailModel *))successBlock failBlock:(void(^)(NSString *))failBlock;

@end
